<template>
  <div class="box-container">
    <four-angel>
      <div class="boxTitle">{{ title }}</div>
      <div class="main-content">
        <slot></slot>
      </div>
    </four-angel>
  </div>
</template>

<script setup lang="ts">
import fourAngel from '../fourAngel/index.vue'
const props = withDefaults(
  defineProps<{
    title: string
  }>(),
  {
    title: '标题'
  }
)
</script>

<style scoped lang="scss">
.box-container {
  width: 100%;
  height: 100%;
  .boxTitle {
    height: 28px;
    line-height: 28px;
    text-align: center;
    width: 100%;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #fff;
    font-family: '黑体';
  }
  .main-content {
    height: calc(100% - 28px);
    width: 100%;
    padding: 0 20px;
  }
}
</style>
